So we've just finished creating our new level that we're going to use as our main menu level, and the
next thing that we need to do is disable all of our player input, because by default, when we play
the game, it puts us in our character and we can run around.
And this is not a good way to have a mean meeting.
So we need to do is go to our level blueprints.
We're going to go to blueprints and down to open level blueprint right here.
And we are going to put in the following code.
All right.
So off of our begin planning node, the first thing that we want to do is get all all actors class.
And what we need to do is get our our first person character.
In my case, if you're making a third person game, this might be your third person character is basically
just whatever your main character blueprint is.
So in my case, there's going to be first person character right here.
I'm going to get a copy of this character and I'm going to set its visibility to hidden.
So I'm going to set actor.
Hidden in game right here, and I'm going to set new hidden that way.
It is indeed hidden that way.
You know, we won't be able to see our player in the main menu.
Next thing that we need to do is we're going to use another get all actors of class node and this time
we're going to get our HUD or other UI.
So in my case, if I was to disable this real quick, we can see that I've got the red crosshairs here
in the middle.
That's part of the first person player, HUD, and the starter template.
That's a thing that is by default added onto your screen.
And since I don't want that, I need to remove it by just doing it all across a class and I'm just going
to grab the first.
Personhood right here.
I'm going to get a copy and I'm going to.
Destroy this actor.
That way, because we don't need it in the main menu, we don't want it in the main menu.
I'm just going to get rid of it.
And so basically, all that we're doing here is we're cleaning up.
Everything that is related to our player character, it's possible that you could probably do this with
a custom game mode as well, that you could sit through your world settings if you wanted to do that
as well.
I tend to find this to be easier.
This is kind of the way that I tend to do things in my own games just because sometimes there's random
stuff that is, you know, dependent on your player character that you need to remove.
And sometimes you just need to get more granular with things.
So I just tend to do it kind of manually in here, just removing all this stuff.
So obviously in your game, you might have custom player helford widgets or, you know, other stuff
like that that you need to remove.
So obviously, I don't know if you have any of those things, you'll just need to know for yourself
and remove those things.
You know, if you've got widgets, then you might need to get all widgets of class and destroy those.
So just do whatever you have to do to clean up your your player character.
So the next thing that we need to do is just disable our input and show our mouse cursor.
So this is pretty simple.
We just need to right.
Click get the player controller.
We need to drag off of the return value here and we're going to set put mode UI only this way will be
able to interact with our our widget in widget to focus.
We don't really need to specify one of these.
And then what we just need to do is drag off of our return value here and get player controller node
again.
And we need to set show mouse cursor to.
So now when we play our game we just compile and say real quick what we're going to see is our mouse.
We can see her mouse.
We don't have a hudd in here.
We don't have our arms and we cannot move around.
And that's exactly what we want.
So just got to get your your whole game to this point and then you'll be ready to hop into the next
part.
So that's it for this video.
And I will see you in the next one.